package com.jinly.ryder.deploy.service.model;

import com.jinly.ryder.common.service.model.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DeployFileType implements BaseEnum {

    INVENTORY("清单文件", "/inventory"),
    CONFIG("配置文件", "/conf"),
    PACKAGE("部署包文件", "/pkg"),
    SHELL("脚本文件", "/bin"),
    ;


    private String name;
    private String dir;

    public String getFileName(String rootDir, String fileName) {
        return rootDir + this.dir + "/" + fileName;
    }


}

